package com.citywy.jdbctemplate;

import com.citywy.dao.AccountDao;
import com.citywy.domain.Account;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.jdbc.core.JdbcTemplate;

public class JdbcTemplate4 {
    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("bean.xml");
        AccountDao accountDao = ac.getBean("accountDao",AccountDao.class);
        Account account = accountDao.findAccountById(1);
        System.out.println(account);
    }
}
